from flask import Flask, Blueprint
from applications.view.zbook.book import bp as book_bp
from applications.view.zbook.index import bp as index_bp
from applications.view.zbook.read import bp as read_bp
from applications.view.zbook.page import bp as page_bp
from applications.view.zbook.meilisearch import bp as meilisearch_bp

zbook_bp = Blueprint('zbook', __name__, url_prefix='/zbook')


def register_zbook_bps(app: Flask):
   zbook_bp.register_blueprint(book_bp)
   zbook_bp.register_blueprint(page_bp)
   zbook_bp.register_blueprint(meilisearch_bp)

   app.register_blueprint(read_bp)
   app.register_blueprint(index_bp)
   app.register_blueprint(zbook_bp)

